//
//  Color.m
//  04-NSDictionaryHome
//
//  Created by 曹曹 on 16/7/7.
//  Copyright © 2016年 曹曹. All rights reserved.
//

#import "Color.h"

@implementation Color
- (instancetype)initWithName:(NSString *)colorName colorValue:(NSString *)colorValue {
    self = [super init];
    if (self) {
        _name = colorName;
        _colorValue = colorValue;
    }
    return self;
}
// 重写此方法可以在打印时显示内容
- (NSString *)description {
    return [NSString stringWithFormat:@"%@-%@", self.name, self.colorValue];
}
@end
